<!DOCTYPE html>
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/day13/addOrupdate" method="post" >
<table th:object="${user}">
    <tr>
        <td>id</td>
        <td>
            <input type="text" name="id" th:value="*{id}" readonly>
        </td>
    </tr>
    <tr>
        <td>名称</td>
        <td>
            <input type="text" name="name" th:value="*{name}" >
        </td>
    </tr>
    <tr>
        <td>年龄</td>
        <td>
            <input type="number" name="age" th:value="*{age}" >
        </td>
    </tr>
    <tr>
        <td>性别</td>
        <td>
            <input type="text" name="sex" th:value="*{sex}" >
        </td>
    </tr>
    <tr>
        <td>手机号</td>
        <td>
            <input type="number" name="sjh" th:value="*{sjh}" >
        </td>
    </tr>
    <tr>
        <td>地址</td>
        <td>
            <input type="text" name="dz" th:value="*{dz}" >
        </td>
    </tr>
    <tr>
        <td><input type="submit"  value="保存"></td>
    </tr>
</table>
</form>
</body>
</html>